package com.meshnetics.gb.type.impl.zcl;

import java.nio.ByteBuffer;

/**
 * WRITE DESCRIPTION HERE
 *
 * @author AKovylin
 */
public final class Null extends AbstractDataValue {
    Null(TypeNull valueType) {
        super(valueType);
    }

    public boolean isInvalid() {
        return false;
    }

    public int getDataSize() {
        return 0;
    }

    public Object toObject() {
        return null;
    }

    public byte[] bytesValue() {
        return new byte[0];
    }

    public void serialize(ByteBuffer bb) {
        if (bb == null) {
            throw new NullPointerException("bb is null");
        }
    }
}
